gtk/window: Don't remember size from GdkSurface
authorJonas Ådahl <jadahl@gmail.com>
Thu, 30 Jul 2020 15:01:54 +0000 (17:01 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Tue, 4 Aug 2020 13:04:24 +0000 (15:04 +0200)
If we're maximized, and try to remember the non-maximized size, we'd
still get the maximized size.

gtk/gtkwindow.c

index 984e766be0771d515a69a89ddac0a4bd27ae745a..58041745d30b0d7c36439f913a4bdbc1de5ef185 100644 (file)
@@ -4078,19 +4078,11 @@ gtk_window_get_remembered_size (GtkWindow *window,
                                 int       *width,
                                 int       *height)
 {
-  GtkWindowPrivate *priv = gtk_window_get_instance_private (window);
   GtkWindowGeometryInfo *info;
 
   *width = 0;
   *height = 0;
 
-  if (priv->surface)
-    {
-      *width = gdk_surface_get_width (priv->surface);
-      *height = gdk_surface_get_height (priv->surface);
-      return;
-    }
-
   info = gtk_window_get_geometry_info (window, FALSE);
   if (info)
     {